<?php

/*
 * Object/ContratType.php
 */

namespace RHX\Model\Object;

class ContratType {

    public $id;
    public $libelle;
    public $abrev;
    public $coef;

    /**
     * Constructeur
     *
     * @param array $data
     */
    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    /**
     * Remplissage des données
     *
     * @param array $data
     */
    public function exchangeArray($data) {
	$this->id	 = isset($data['id']) ? $data['id'] : null;
	$this->libelle	 = isset($data['libelle']) ? $data['libelle'] : null;
	$this->abrev	 = isset($data['abrev']) ? $data['abrev'] : null;
	$this->coef	 = isset($data['coef']) ? $data['coef'] : null;
    }

    /**
     * Copie Tableau des objets
     * 
     * @return array
     */
    public function getArrayCopy() {
	return get_object_vars($this);
    }

}

?>
